IMAGE_NAME=soulcoder
PROJECT_NAME=soulcoder

git pull

# 执行相关模块的Maven package
mvn clean package -DskipTests


base_dir=$(cd "$(dirname "$0")";pwd)

docker stop ${IMAGE_NAME}
docker rm ${IMAGE_NAME}
docker rmi ${IMAGE_NAME}
docker build -t soulcoder .
mkdir ${base_dir}/soulcoder_data
# 在
docker run -p 10001:10000 --name soulcoder -v ${base_dir}/soulcoder_data:/www/data -d soulcoder